package com.hzd.service.lol;

import ablaze.framework.config.SystemConfig;

import java.util.Random;

/**
 * @author christ
 * @date 2015/11/10
 */
public class LolRandom {

    private static Integer randomShareNum = null;

    /**
     * 随机获取分享人数
     *
     * @return
     */
    public static int randomShareNum() {

        if (randomShareNum == null) {

            randomShareNum = SystemConfig.getInt("random.init.share.num", 538);
        }
        return randomShareNum.intValue() + new Random().nextInt(5);
    }
}
